<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="<%=basePath%>">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" type="text/css"	href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>admin/assets/jquery-easyui-1.4.3/themes/icon.css">
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath %>admin/assets/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="<%=basePath %>admin/assets/css/backOffice/myeasyui_base.css" type="text/css"></link>
<body>
    <div class="topTitle">
    	资讯类别
    </div>
    
    <!-- Begin 资讯类别面板 -->
 	<div id="main_layout" class="easyui-layout">
	    <div data-options="region:'center',title:'资讯类别'" style="padding:5px;background:#eee;">
	    	<table class="easyui-datagrid"  id="news_category" 
				data-options="rownumbers:true,singleSelect:true,url:'admin/news/newsCategory_getNewsCategoryJson.action',method:'get',toolbar:'#btn_newsCategory',pageSize: '20',pageList: [20, 30, 40, 50, 100],pagination:true,fit:true" >
			<thead>
				<tr>
					<th data-options="field:'id',width:100,hidden:true">编号</th>
					<th data-options="field:'name',width:100">类别名称</th>
					<th data-options="field:'order',width:100">排序</th>
					<th data-options="field:'status',width:80,align:'center'"  formatter="newsCategoryStatusFormatter">使用状态</th>
				</tr>
			</thead>
		</table>
		
    </div>
</div>
	<!-- End 资讯类别面板 -->
    
     <!-- Begin 菜单详情操作按钮 -->
    <div id="btn_newsCategory" style="height:auto">
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="addNewsCategory()">添加</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" onclick="removeNewsCategory()">删除</a>
		<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="modifyNewsCategory()">修改</a>
	</div>
    <!-- End 菜单详情操作按钮 -->
    
	<!-- Begin 资讯类别表单 -->
	<div id="newsCategory_form_dialog" class="easyui-dialog"  style="padding:10px" data-options="modal:true,closed:true,resizable:true">
		<form id="newsCategory_form" method="post">
	    	<table cellpadding="5">
<!-- 	    	<input type="hidden" id="form_newsId_Hidden" name="newsCategory.news.newsId" /> -->
				<tr>
	    			<td style="text-align: right;">编号:</td>
	    			<td><input class="easyui-textbox" type="text" id="form_id" name="newsCategory.id" data-options="" readonly="readonly"></input></td>
	    		</tr>
	    		<tr>
	    			<td style="text-align: right;">类别名称:</td>
	    			<td><input class="easyui-textbox" type="text" id="form_name" name="newsCategory.name" data-options="validType:'length[1,10]'" required="true" validType="checkNwcValue"></input></td>
	    		</tr>
	    		<tr>
	    			<td style="text-align: right;">排序:</td>
	    			<td><input  class="easyui-numberbox" type="text" id="form_order" name="newsCategory.order" data-options="validType:'length[1,3]'" required="true"   precision="0" max="999" maxlength="2" validType="checkOrderValue"></input></td>
	    		</tr>
	    		<tr>
	    			<td style="text-align: right;">状态:</td>
	    			<td><select class="easyui-combobox"   id="form_status" name="status" >
								<option value="">==请选择==</option>
								<option value="1"> 显示</option>
								<option value="0" >隐藏</option>
							</select>
					</td>
	    		</tr>
	    	</table>
	    </form>
	    <div style="text-align:center;padding:5px">
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitDataForm()">提交</a>
	    	<a href="javascript:void(0)" class="easyui-linkbutton" onclick="form_close()">关闭</a>
	    </div>
	</div>
	<!-- End 资讯类别表单 -->
	
	<script type="text/javascript" src="<%=basePath %>admin/assets/js/BackOffice/mine-function.js"></script>
	<script type="text/javascript" src="<%=basePath %>admin/youbiao/news/js/js_newsCategory.js"></script>
</body>
</html>
